package calculadora;

public class Calculadora {

	public double gehitu(double number1, double number2) {
		return number1 + number2;
	}

	public double kendu(double number1, double number2) {
		return number1 - number2;
	}

	public double biderkatu(double number1, double number2) {
		return number1 * number2;
	}

	/*
	 * Si es 0/0 = 0 y si es X/0 = 0
	 */
	public double zatitu(double number1, double number2) {
		if (number1 == 0 || number2 == 0) {
			return 0;
		} else {
			return number1 / number2;
		}
	}

	/*
	 * number 1 --> Base number 2 --> Potencia
	 */
	public double potentzia(double number1, double number2) {
		return Math.pow(number1, number2);
	}
}
